<template>
  <div>
    <!-- 添加投诉对话框 -->
    <el-dialog title="" :visible.sync="dialogFormVisible.show" :before-close="handleClose">
    <el-form :model="form">
        <el-form-item label="投诉信息" :label-width="formLabelWidth">
        <el-input v-model="form.name" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="上传图片" :label-width="formLabelWidth">
        <el-input v-model="form.phone" autocomplete="off"></el-input>
        </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
    </div>
    </el-dialog></div>
</template>

<script>
export default {
  props:{
     dialogFormVisible:{
      type:Object,
      default:{}
     }
  },
  data() {
    return {
      form:{}
    }
  },
  methods: {
    handleClose(done) {
        this.$confirm('确认关闭？')
          .then(_ => {
            done();
          })
          .catch(_ => {});
      }
  },
};
</script>